
namespace ZR.Model.Business
{
    /// <summary>
    /// 用户表
    /// </summary>
    [SugarTable("sys_user")]
    public class User
    {
        /// <summary>
        /// 删除标志（0代表存在 2代表删除） 
        /// </summary>
        public int? DelFlag { get; set; }

        /// <summary>
        /// Remark 
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 更新人 
        /// </summary>
        [SugarColumn(ColumnName = "update_by")]
        public string UpdateBy { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人 
        /// </summary>
        [SugarColumn(ColumnName = "create_by")]
        public string CreateBy { get; set; }

        /// <summary>
        /// City 
        /// </summary>
        public string City { get; set; }

        /// <summary>
        /// Province 
        /// </summary>
        public string Province { get; set; }

        /// <summary>
        /// 部门Id 
        /// </summary>
        public long? DeptId { get; set; }

        /// <summary>
        /// 最后登录时间 
        /// </summary>
        public DateTime? LoginDate { get; set; }

        /// <summary>
        /// 最后登录IP 
        /// </summary>
        public string LoginIP { get; set; }

        /// <summary>
        /// 用户id 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long UserId { get; set; }

        /// <summary>
        /// 帐号状态（0正常 1停用） 
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 用户性别（0男 1女 2未知） 
        /// </summary>
        public int? Sex { get; set; }

        /// <summary>
        /// 手机号 
        /// </summary>
        public string Phonenumber { get; set; }

        /// <summary>
        /// 密码 
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 用户邮箱 
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// Avatar 
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 用户类型（00系统用户） 
        /// </summary>
        public string UserType { get; set; }

        /// <summary>
        /// 用户昵称 
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 用户账号 
        /// </summary>
        public string UserName { get; set; }

    }
}